package com.jlpay.open.jlpay.sdk.java.model.openmerch.device.response;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.jlpay.open.jlpay.sdk.java.model.BaseResponse;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 银联云闪付原生码查询响应
 *
 * @author liaochangyi
 * @since 2024/06/26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class UnionPayCodeQueryResponse extends BaseResponse {

    /**
     * 码牌列表
     */
    private List<UnionpayQrcodeInfo> qrcodes;

    /**
     * 码牌信息
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
    public static class UnionpayQrcodeInfo {

        /**
         * 商户号
         */
        private String merchNo;

        /**
         * 终端号
         */
        private String termNo;

        /**
         * 打印商户名称
         */
        private String printMerchName;

        /**
         * 银联原生码链接
         */
        private String qrcodeUrl;
    }
} 